package com.lemner.www.hongyu.Bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by 小博 on 2017/11/8.
 */

public class GetdepartpersonBean implements IPickerViewData {


    private String retCode;
    private String errCode;
    private String errMsg;
    private DataBean data;

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public String getPickerViewText() {
        return this.getData().getList().toString();
    }

    public static class DataBean {
        private List<ListBean> list;

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements IPickerViewData {


            private int id;
            private String username;
            private String section_flag;
            private String section_name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getSection_flag() {
                return section_flag;
            }

            public void setSection_flag(String section_flag) {
                this.section_flag = section_flag;
            }

            public String getSection_name() {
                return section_name;
            }

            public void setSection_name(String section_name) {
                this.section_name = section_name;
            }

            @Override
            public String getPickerViewText() {
              return this.section_name+this.username;
            }
        }
    }
}
